package com.bdqn.t350.web;

import com.bdqn.t350.anno.RequestMapping;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class DeptController {

    @RequestMapping(name = "update", value = "/update")
    public void update() {
        System.out.println("update....");
    }

    @RequestMapping(name = "update1", value = "/update1")
    public void update1(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("update1....");
        request.getRequestDispatcher("index.jsp").forward(request, response);
    }
}
